"use strict";
var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
var student = /** @class */ (function () {
    function student(name, age, height) {
        this.name = name;
        this.age = age;
        this.height = height;
    }
    student.prototype.say = function () {
        var yy = "my name is " + this.name + ", I am " + this.age;
        if (this.height != undefined) {
            yy = yy + (" I have " + this.height + "\u9AD8");
        }
        return yy;
    };
    return student;
}());
var wuyucun = new student('吴雨村', 26);
console.log(wuyucun.say());
console.log(wuyucun.name);
var moli = new student('茉莉', 28, 150);
console.log(moli.say());
console.log(moli.name);
var staff = /** @class */ (function () {
    function staff(name, age) {
        this.name = name;
        this.age = age;
    }
    staff.prototype.say = function () {
        console.log('1、我要说话了');
    };
    staff.prototype.make = function () {
        console.log('2.我要做爱');
    };
    return staff;
}());
var moliy = new staff('吴雨村啊', 12);
console.log(moliy.name);
// console.log(moliy.age) 报错了这里，因为age是私人属性
var staffAfter = /** @class */ (function (_super) {
    __extends(staffAfter, _super);
    function staffAfter() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.nickName = '阿三';
        _this.birthday = '2019/07/02';
        return _this;
    }
    staffAfter.prototype.say = function () {
        _super.prototype.say.call(this);
        console.log('我媳妇儿是一个傻吊');
    };
    return staffAfter;
}(staff));
var mazha = new staffAfter('吴雨村', 27);
console.log('maza、' + mazha.nickName);
console.log('maza、' + mazha.name);
console.log('maza、' + mazha.say());
